/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.dess.chat.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @project-name:dess
 * @package-name:com.hyts.dess.chat.constant
 * @author:LiBo/Alex
 * @create-date:2020-07-25 14:34
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */
@Getter
@AllArgsConstructor
public enum MessageTypeEnum implements EnumTemplate<Integer> {

    /**
     * 私聊
     */
    私聊("PRIVATE_CHAT_CODE",1),

    /**
     * 群聊
     */
    群聊("GROUP_CHAT_CODE",2),

    /**
     * pong 信息
     */
    pong信息("PONG_CHAT_CODE",3),

    /**
     * ping 信息
     */
    ping信息("PING_MESSAGE_CODE",4),

    /**
     *  系统消息
     */
    系统消息("SYSTEM_MESSAGE_CODE",5);

    /**
     * 名称
     */
    String key;

    /**
     * 数值
     */
    int value;

    /**
     * 获取key
     * @return
     */
    @Override
    public String getKey() {
        return key;
    }

    /**
     * 获取subject数据值
     * @return
     */
    @Override
    public Integer getSubject() {
        return value;
    }


}
